cleaned up stream module code
improved net client unit tester