Clean up g.grid.

Use camel case variable names, get rid of Underscore dependency.