Added functions to save, open and close the document. Create snaphot v0.6