add some information at the beginning, and add some socket code with comment