Added rudimentary "operations" feature
Implemented undo, removed debug printing