Started with document stuff

I added some stuff to use document prediction in the regression. No
improvement at this point, but I am still working on seeing if I can get
something better working.
More document changes

Results and possible bug fix
Regression bug fix

proper handling of articles