wavelet_transform: Renamed functions in a more logical manner.