Renamed detection.py to core.py