add two methods to the undomanager
review comments
Merge pull request #51 from devoncarew/devoncarew_add_isclean

add two methods to the undomanager