added comments to generator