implements undoStack
Merge pull request #39 from bhattigurjot/master

implements undoStack