Changed length parameter in SPI methods to be a byte length, rather than