updated documentation
added undo command
implemented undo command