writing markdown file