Added ability to turn of debug mode as well as delete local files stored by it