Initilize totals with 0 values

Addresses #596
Fix rounding issues on total row

* Use actual percentages to calculate the total to ensure
  the rows average matches the totals average

Fixes #596
Merge pull request #597 from TheSerapher/issue-596

Issue 596