Reworked entire Network class. Finished but not fully commented or tested.