Undo and redo functionality

Added undo and redo functionality to the generated proxy classes