Improve logging.

Added support for verbose output.