added write_to_csv and parse_stuff methods