Formatting of the document