gen.sh updated for basic cpp