Fixed empty index problem.

Apparently, one cannot create an empty index.
But if there is a title with , inside, indexing
the book name as standard causes problems.
Now indexing is optional. Enable it if you have something
to index.
Added documentation to enable index.