Changes to looping construct. Function is now operable, but tweaks are
needed for the smoothing operations. Too many peaks are being located.
Merge branch 'master' of github.com:sixy6e/my_code