Markdown refactor- thanks to dillinger.io and socrates.io