Fixed SPI mode issue, can now read data properly (only temerature has been tested).
Fixed SD card issues. Datalogger is now working.