added flatten_parsed_file.pl