added matchDet to jmGen.py