Added .gitattributes
Changed a couple of socket functions