removed vestiges of dwt-only output
refactored memory code into Frame class
DWT always outputs shorts, so no need for output template param
handle 3 component input
massive refactor