testing new code in EOF. Added some more new fns. Up to doing varexp, corr now; check if cor without 'spearman' is more efficient (and more logical?)