final changes to ch7, ch8, added appendix a