The keys for min and max totals were wrong and they should not have been inside the units hash.
Merge pull request #5 from rsilva/minMaxTotals

Fixed min and max totals