Prefer classes over IDs
Private fields start with _
Fix updateModel()
key.isAlterationKey()
Fix #11

Fixes a bug in UndoStack.getNextState() and prevents re-adding the same
state to the stack.