minor import cleanup
exchange print for logging
default logging level DEBUG -> CRITICAL
fix whitespace