What is the significance of the word comedy (comedia) in the Divine Comedy's title?

A. It contradicts common thoughts of religious joy.
B. It signifies a story that begins sadly but ends happily.
C. It means the story has a humorous tone.
D. It emphasizes the importance of comedy in serious situations.