Add events to undo manager
Add documentation for undo manager events