Some typo fixes, changes layout to prevent overflow of code blocks, plus some editorial changes to try and make the descriptions/layout as clear as possible.