Incorporated matchDet into relevant functions in jmGen.py ver 1.1.18