Added mandatory parameters of sphinx configuration.

Configurations now check if they have all required parameters.
Improved docs for configuration and indexes.
Improved documentation text and examples.
Removed unused import.