Added .dat functionality to grid_maker