update compile script

Compile the book by default.
Compile the chapters separately on demand