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.
Merge pull request #3 from clintxs/escape-keywords

Prevent markdown formatting on keywords
more bugfixes courtesy of clintxs