Set up general structure of the document