Update detector.py

Ooops.  pushed an unmerged copy :-/
Merge pull request #90 from joelvbernier/master

Update detector.py