Now using Python logging module.

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