writing md file