Tidy up headers on templates
Code Cleanup
Only output an ``__index__.rst`` if the module has sub-modules.
Omit the generated index.rst and replace it with the API Index