First working build of the exchanged code.
From this, the goal is to refactor calcAdjacencies and the functions that call it, as well as loadConfigFile()