Make debug messages configurable at runtime

Still missing a commandline option