modified the output (E_bin_min becomes E_bin_mean)