Merge pull request #60 from caiusb/reliable-save

Implemented a reliable save detection mechanism
Merge branch 'refs/heads/master' into undo-redo