updated to use logging and -v or --verbose argument
use loglevel setting in settings.cfg