Adding initial Markdown documentation.
Ignoring the Markdown preview HTML.
Documentation and minor fixes and refactoring.