Added lots of examples to the manual, plus some other fixes.