Minor stability improvements, added loading/saving of the grid.