Cleaned up network.cs
-More object based rather than a single gross function