Bug fixes

Fixed NullPointerException while getting chapters
Removed debug code from log in code