Update doc of chapter 5, 6, 7.