Update document and create folder structure