Detect Events fn created, updated index files

- Detect events function scans distP and distQ
- updated index files to include thresholds