Added help undo function and test
added logging