Added descriptions of what functions do in client handler