add docs on md_document