Put SPI stuff back in main directory and moved upper functions into temp folder