Fix typos and finalize chapter 9.