Fix some busted escape sequences in docs, and slightly reformat a few examples