added files to fit curves to data. and fixed invlap