debugging average_bedgraphs script