Add debugging mode.
Introduce logging for debugging purposes.
Small code tweaks.
Added chapter page count display.
--debug command added to README.