Better last hitting, changed waveform threshold,better gadget debugging