Improved the logger function to better check for inexistant files.
Fixed some lines being out of place in the logs.
Improved logging of launch parameters.