added rudimentary bpm scoring function