Completed in-code documentation for GENERATOR