Add readme file and make socket an argument