changes to eppMatrix.R and epp.R