added grid, formatting in prog