Segmented out Network stuff into Network class. Fixed mem-leaks \n \n test of new line