fixed the logging
Merge pull request #111 from Galithil/master

fixed the logging
Merge pull request #112 from mariogiov/devel

This script has been giving people trouble
Resolve merge conflicts