Added a new class of undo to fix #37.
Merge branch 'master' into addpoppler