Improve reliability of fitter and resonator
start adding tests to verify functionality.