added logging and fixed spike_broadening measure