Also corrected some mistakes in chapter 5 and 7.