fixed a bug in signal selection, now on to convolution and such
got correlation in, now to do the two class case