pull request for logging instead of print

a upside of using logging is that we get a very detailled verbose handling for free