Cleaning up code

Added constants for Max and Min temperatures instead of hard coding 40,
-40.
Also found better way to test if there is data present without using
Float.isNaN();