Cotains the code to the main functionality - detect ringdowns