Fixed problem with saving versions of document and DELETE. Closing #47