Add docs to _parse_file_and_write method