Fixed issues with integer max in settings.
Merge pull request #6 from aschuster3/master

Fix max integer crashing bug in settings