Fixed read_register bug
Removed printf statement from spi_transfer