Add command gitbook pdf to generate PDF
Refactor bin/gitbook.js