added resetLast() function to the grid, cleaned up grid comments