Fixed typo in file name
Wrote codegen code
Changed nodetype occurrences to int
Fixed typo in waitmicrostatement