Fixed the bugs in the graphs controller so that the numbers are correct and it will produce valid  output for a limited number of issues or questions