Loop over single or multiple files and fitting data, need to limit data