Generate wavelet with zero mean

I now think this is more desirable in most circumstances.
Add applystat for a single frequency and some optimization