adding in debug config option, adding logic and documentation for it