Added a socket connection. Moved some files around.