# he knocked
"Peter knocked." Tapping on the door was a normal Jewish custom to let others know you wish to visit them. You may need to change this to fit your culture.
# at the door of the gate
"at the outer door" or "at the door of the entrance from the street to the courtyard"
# came to answer
"came to the gate to ask who was knocking"