Code for working on debug of grid bounds
Fixed issues with grid alignment and bounds.
Made the grid visibility be controlled in a better way, removed some debug code.