flesh out comments in peak_finding, add rough test code