Simplification and Modification

Remove the unused functions and debug prints and fix the bug that the
temperature bytes are reversed.