clean up main index, and all other errors in sphinx compile