Door makes a clunk sound when it is opened or closed

By the way, what is that arm thing anyway? I figured it just keeps the door from flying across the street.