Added ability to pick next highest score if function is 0 and fixed check for it. Added check for threshold to see if it is an integer. Instead of < 1 and >=1, it's float vs integer to decide what kind of thresholding as score range is 0-2.
Removed cputimes and other minor changes.