Fix typos/formatting problems

As reported by @Toxaris.