Debugged the grid equations, and implemented them along with some tests.  Grids are not fully functional yet.