Simplify graph.cgi code by interations based on days.
Simplify graph.cgi and add comments
Fix test value
Fix date range to display graph in the right range