added loggin class and finished all the temperature setting