A little more work on Chapter 4

Cleaned up comments, added a few more functions.