#34 SPI clean up and documentation