Calmed network initialization

-Code organization, cleanup, and indentation fixes.
-When a link is added to the network and the network is regenerated,
nodes are initialized at their current position.
-The display stays at the user's current position and scale when the
network is regenerated.