added single byte write routines, renamed spi_write to spi_transmit