Began work on network code
Added network tests