Update and rename fit.R to src/fit.R