commit from documents