heatmap main script now dumps to file