example document factory should use a url

document factory should use a url so pdf, doc and other file types are correctly parsed.  this allows users to have their data files processed by simply adding them to the input directory.  without this, non-plain text files like pdf are parsed as plain text with bad results.