Refactored code to add metabolic parameters

Changed how fitted metabolic parameters were aadded to the list by
creating a function