Refactored network package again. Also added (Main) main method and started to tie networking into it