improved waveform snap
fixed chooseLimits callback bug
cleanups