Add --max-frames option to fit.py
Add template file and update algorithm to find frame hi value to account for small peaks