adjusted undo/redo implementation section
added dynamic variables to lisp requirements