Reworked fit parameters to be read in from file, accessed through global variables