Improved chapter 1-2. Chapter 3 in progress