updates to EEP smoothing and pre-MS primary EEP
fixed distance formula to be linear in each term