Moved initStruct() to network.h
Minor changes.