WORKING BADLY

Commented out things to find bug.
Currently works, but need to find bug and then uncomment to give it full
functionality. At the moment the problem seems to be something to do
with the allocation of memory for the readings array...might need to
properly allocate memory or something... Also has problems with the CRC
code too....