Consistency between new/save/open and undo/redo. Added clear.