created matched filter class and added thresholding