documented and cleaned up section for reading in files
rewrote create_row_dicts as generator function and simplified writing process