Minor tweaks to align code with discussion in the text
smoothing out mismatched titles with text of book
fixed comment that was too long