Add docstring to parse_file