Added log messages
Being less conservative about what "data" means
Fixed clean-up code.
Separated out the logic that reads in the 'lines' of text and that which creates the corpus.  Also, adding logic to both test and train sets.