Added beatdetector.py