extended bam_split()
added functionality to generate BED from BAM (for further bigWig generation) in bam_split