fix assorted minor problems

Please consider using Markdown for this; it would be a lot easier to edit.