Sorted dictionary 'totals' by values.
Cleaned up code and removed uneccessary lines.
Merge pull request #23 from thedouglenz/issue-6

Sorted dictionary 'totals' by values.