Added more documentation to eventDetection.py