Commit version 4.

  * Make wavelet analysis/synthesis method user selectable.