prepared the document structure and added an index and a title