added general wavelet program with m channels, n triggers, d datasets and q repetitions