add an debug class that writes all debug messages into a file...explicit made for windows without qtcreator to see debugging