Fix for nil maxValue

Set default maxTotal to stop JSON error when maxValue isn't greater
than minValue
Merge pull request #5 from dombarnes/master

Fix for nil maxValue