bugfixes and temperature

temperature class added