implemented most of the base network code; some Makefile changes; implemented multi-threading in network