Added documentation on cfg_generator