added save_grid_data_to_file and make_array_into_dataframe