Adding main document