added wavelet matrix extraction and wavelet boundary extension, the latter is not functioning and is WIP