New Spike-train Detector

Almost working