fixed IML syntax for changeMode example
ASTGenerator improved and cleanup