Update fitting.R

Add option to change output file, useful if running on multiple files from the same directory. Otherwise the AIC is not available.