Clean up input and output parameters.

Input is now a mandatory positional argument ('-' is allowed for STDIN)
Output is sent to STDOUT (can be redirected)
Logging messages are sent to STDERR if -v flag is set