Added settings file and sockets code