Fixed some style issues brought up by markdownlint

Specifically "headers should be surrounded by blank lines", "multiple consecutive blank lines", "trailing spaces" and "multiple headers with the same content"