implemented min and max value
Fixes #5
code refactoring, version bump, dist added