added grid_gen and read_grid
renames