fixed typo on file close... bedgraph not bedfile