Wrote write_setext and did some minor editing to atx header functions.