Yet More Debugging

Here we debugged the function using temperature chart. This time most
of the problems were with string formatting. Just feeding not enough
arguments, or formatting them poorly, that kind of thing. Fixed.