Fixed references.
Updated ch4 and ch5.