add a factor that should decrease the error caused by missing peaks
changed latest bpm result to be CGFloat
added settings object which saves its params to NSUserDefaults.
added a UISwitch to switch between continuous and AutoStop mode.