Use Val for parsing numbers
Merge pull request #18 from timhall/parse-numbers

Update number parsing