Comments set history and set undolevels.
Added configuration options for persistent undo support.