method doc gen