Merge pull request #30 from lawinslow/master

Solved a minor issue with layer.temperature calcuation.