added executable shebang, debug option