Changed thresholding to compare to moving average.
Merge branch 'master' of https://github.com/randyp1248/darpa