Connection files

Basic connection using sockets. Still needs some testing