Set min_peak threshold to 3.0. Fix t_end bug --Vic