More edits and code examples for Ch 2.
Chapter 2 edits.