Which of the following parenthetical citations is placed and punctuated correctly?

A. Edgar Allan Poe was born in Massachusetts in the early nineteenth century (Freeman 311).
B. Edgar Allan Poe (Freeman 311) was born in Massachusetts in the early nineteenth century.
C. Edgar Allan Poe (Freeman, 311) was born in Massachusetts in the early nineteenth century.
D. Edgar Allan Poe was born in Massachusetts in the early nineteenth century. (Freeman, 311)

D. Edgar Allan Poe was born in Massachusetts in the early nineteenth century. (Freeman, 311)

The correct answer is D. Edgar Allan Poe was born in Massachusetts in the early nineteenth century. (Freeman, 311).