Michael's changes: logging, file input.
Added try-catch block around the call to boilerpipe.
Added incrementing of current document on None returns so we have accurate currentDocument count.