Add documentation for undo manager events