lowercase variable names within function
reorganized lines
s-> segment
renamed more variables
encapsulate more peak sorting logic in find_peaks.py
copy the old phase list instead of setting equal
BIG bug fix: peak indices were off by one
renamed best_frequency -> frequency_estimates
fixed the biggest bug! we were modifying spectrum_phase on accident by assigning it to another variable name and modifying that