finish chapter1 and some of chapter 3, add some refs