tidied up some bits, mainly introduced linebreaks into code examples to prevent scrollbars