Add comments and formatting to some classes related to communication in the client-side