Initial file funs for getting predicted spatmod
Fix for exp corr, fix for parameters
Add detrend, fix PM