removed check for data >2D in wavedecn.  allows 1D & 2D inputs as well