Lots of little fixes, plus chapter 9 example.

convert to early-return pattern