changes by mehran on nin380, mainly wavelet stuff,