Fixed grammar.
Parsing numbers.
Closing files in tests.