Fixed index.rst to have the toc at the end as the pdf version had
troubles