Print args after parsing not before
Remove an unused import
Some logging tweaks