Trying to get fitting functions to match results of cantilever.py