Fixing syntax errors and exit code.
Changing verbose to debug.