lots of pep8 clean up, and style changes for graph

adding a more-info field to the response time graph
to explain the data, also tons of pep8 clean up,
and a few minor optimisations.