refactored DocGenerator for iibench