Refactored network/globals/graph traversal code

openSocket() no longer exits the program on fail
Removed printNeighbors() method that was no longer being used
Misc refactoring
Added new class for serializing neighbors