fixed #103; signed byte cast to int was not handling values > 127
fixed #104; added synchronization to SPI read/write operations