A few improvements in the misfit calculation:
(1) Adaptive tapering. Taper width now chosen to be half the minimum period.
(2) dt_new and width in the time-frequency transform now proportional to minimum period.