Add chapter 3 missing examples and make style changes

The usual style tweaks plus a bunch of examples that didn't exist yet.