Add parseFile function, that does the parsing.