saving only data used in fitting.  columns ordered as in formula
improved resampling code -- gen* functions removed