1.Change socket read and write
2.Add makefile