Better documentation and optimized examples for grid classes

Addresses #10296.