adding fitting loop

fitting loop loops over trimmed and stripped files and creates fits and
saves the output parameters and fit curves