body tag
remove some obsolete patterns
remove debug outputs
fix getting list of books
fix index generation and main loops