Fixed problem with dof where number was used instead of dofid.
Solved by removing the "number" variable from the Dof class and always referring to the dof id for storing and restoring.