commits the Document saving with checking..