Corrections of CSpikeTrainDetector, CPackDetector

Corrections of CSpikeTrainDetector, CPackDetector
Some bugs were fixed, some debug code was added