Cleaned up network io printing
Added some actual tests!