merged
implemented line-mode training
updated train.py to allow for doc-per-line input format