Focusing on key functions for cleaning and extracting spikes per threshold