fix some code errors
fix typo in chapter 9
fix typo in foreword
fix code error in chapter 11, close #45
fix code list 11.1, close #46