fixed temperature decoding
fixed encoding + added test
added encoding of date and time + added tests