Added the indexes to the document
Added header and footer