QRS detection
A modified version of the Pan-Tompkins algorithm (Pan and Tompkins, 1985), with additional steps to correct for both false negative and positive QRS detection. Visually inspecting of the detected QRS and possibility to add or remove R peak is added to the code.