Make pattern chapters more consistent.

Added a bunch of details to the style guide for how chapters should
be formatted.
Fix #178.