Remove modindex from documentation and fix other documentation bugs.