* Add support for BED output format, move logic of which matches to write output of write_gff_format