cfg added to change parameters, Abeles method, smoothing overlap of heartbeats and more