We put commas in nonrestrictive modifiers since these phrases or words are only added to present further information. This information is not essential to the sentence and removing it won't have any effect on the thought. Thus, putting a comma will make it essentially a separate block of text from the whole sentence.
ANSWER: B. nonrestrictive modifiers