gen.sh: add comments