Various tweaks

 * preferred if you quote package names in `library()`
 * replaced `=` with `<-`
 * consistency changes
 * reformatted some of the code blocks to line up the inline sections