adding comments and fixing formatting with temperature