Updated to-dos based on feedback.
Reorganized to plan next steps.
Fixed bug that messed up maxima and minimas. Also improved debugging and made progress toward putting images in a directory.