modified the regression demos r

they all seem to work now.