Added documentation to generator class constructor.