Added a simple check for output_base
Merge remote-tracking branch 'upstream/master'
Now using Python logging module.

Fixed ‘output directory’ bug and modified status/error messages to use
the Python standard library logging module.
Resolve conflicts