Working on Density Grid

Made some more progress and changed the Record class a lot. The
dimensions are handled now.