Major changes in algoithm and gui.
Restructured code. Displays bpm now
Gui improvement.