Fix several typos in code and text.  Thanks Iain, Anton.