Function to get parameter values from a dsin or dsfinal.txt file and improved performance of set_pars