Implementing faster software SPI, bugfixing sun calculation