Added saving in history for document operations. Implemented undo/redo based on history and Bijection protocol.