SPI work

Worked on SPI driver/library. Still needs work.