Add tests and comments to FileParser.