cleaned up main, added updateTempo func and comments for notes