Add some comments to gen.sh