Finished Chapter 6.

- Added chapter names at top of files
- Trimmed trailing whitespace