Minor updates to md_header.
Implemented md_generic.
Wrote function write_atx_header.