Fix some typos and style in client.c, and add a comment.