Added the option to disable all debug (except progress report)
Fixed a relocation bug