Some improvements

Add version and log it together with the arguments to the script.
Correct handling of -T argument.
Spaces
Log version and arguments earlier