Added SPI and minor corrections