Corrected swapping of 2nd and 3rd orientations
Removed dependency on original wavelet output
Removed dependency on original wavelet output
Corrected curv_final calculation

Also:
Removed unused functions
Removed unused return variables
Corrected DWD inverse