Made the debug logging more detailed by adding the printout of the configuration and a few other stuff (re #170)