Fixed up networking a bit. Added reading test.