Added exceptions in Temperature.java and more test cases in TemperatureTest.java

Also added more comments