Added write functions for bed files.