Check argument is an integer before parsing it as one.
Merge pull request #14 from confuser/master

Check argument is an integer before parsing it as one.