updated so that it will process the functionals of all controls and patients, does not include wavelet despiking