Update reference code and review ntoes.
Finished the first time of code reviewing till Chapter 4. The rest of
the book will be finished as soon as possible.

TODO: Finish the code review of CH5--CH X this afternoon. With detailed
notes and YOUR IDEA.