Fixed some small typos and updated chapter 8 w.r.t. code-1.1