Fixes #14 - Added support for undo/redo.