Prevent markdown formatting on keywords

I placed backticks around the keywords in the markdown output, preventing them from being formatted as markdown. For example, it stops the keyword '#' from being seen as a heading tag.

I also cleaned up some of the code a bit.