recently discussed but OA is A, not D
In B: if we don't use with, we would have ambiguity about whether misconduct was parallel with teaching or with doctrine. In other words, it sounds like the president was teaching administrative misconduct!!
In D: The key here is to notice that doctrine is the object of teaching and should therefore be kept as the object, not as an adjective (or, as we sometimes say, "in attribution").
In other words, we should follow this pattern: PREP + GERUND + OBJECT OF GERUND
Example will make this rule clearer - Consider the following sentences:
The woman was fired for buying junk.
The woman was fired for junk buying.
After eating lunch, I felt sleepy.
After lunch eating, I felt sleepy.