Cleaned up nomenclature for functions. Functionized CES curve fits. Tried CES curve fit for ZA, but it fails.