BUG: needed better error checking in cthresh for sparseDecom2