some bugfixing

also updated the temperature calculation