Shaped up and documented Grid and HashCoords classes.