latest version...

Numerous changes, but most relevant is the implementation of a training
data set and out of sample testing of estimated model.