Minor updates, added chapter 4.