changes to the doc generator: fixing the method doc creation