Tweaks to accepted input when run as a script:

 * Only accept input on STDIN

 * build_word_model now assumes its input is an iterator over lines
   of text.
Updated docs