Fixed the numerical inputs not getting parsed

Great script! I had to change these to get it to work with command-line options though.
Merge pull request #1 from efskap/patch-1

Fixed the numerical inputs not getting parsed