Better error message for invalid keyword in declaration section
added dmc example code
added assembler declaration to fix linking with the MSVS linker
fixed crash on exit from program which used a for loop