Update structure of documents