Annotate generated script with comments