added comments to the code generator
using latest tested generator