used correct min/max values (Fixes #7, Refs #6)
Merge pull request #9 from kaize/feature/correct-integer-min-max-values

calculate min/max values (Fixes #7, Refs #6)