Changed BPM calculation
Fised integer division-problem with the bpm calulation