fix debug.sh
add forward declarations to the language
fix trailing space