Example code for analytic patterns chapters
Dumping stuff into statistics, and a couple small changes, while writing the mr patterns chapters
moving stuff into correct docs