Add modules to the document