Moved socket creation to a different file. Makefile now has debug symbol. Pipes are now closed earlier for a cleaner exit.