Changed to fix bug with negative temperatures. Bug reported and fix contributed by Sebastian Muszynski (basti@linkt.de). Thanks Sebastien!