Parsefile() test code compiles. Needs to be finished and tested.