Improved detection alg.

The alg. can detect different neurons from the same population (before
it could one detect which population, now it can detect which neuron and
which population)