Read this sentence.

Walking purposefully up to the house in the evening, the woman then banged loudly on the door.

Which answer choice both identifies a prepositional phrase in the sentence and correctly identifies its function?

A. "on the door"; tells more about the action of banging
B. "in the evening"; tells more about the reason the woman walked
C. "up to the house"; tells more about the action of banging
D. "in the evening"; tells more about the house and those around it