Initial commit. Chapters 1 and 2 beta, some initial work on Chapter 3.