fw #21: pgen tool almost done
fw #21: Add read only/don't save flags to generator.