modify write_md.R
write md files