add comments to socket demo