Added flush and some comment

Without STORE_GRIDS it is necessary to flush the grid file,
otherwise it might stay empty for the entire simulation