Write progress/errors to STDERR instead of STDOUT
If outputfile is not provided, use STDOUT
Merge pull request #3 from jsvine/stderr/stdout

A few tweaks to make docs2csv play nice with stdout