[network] Minor code restructuring and documentation
[network] Minor code restructuring and documentation

victorisildur/Graphite,8l/Graphite,8l/Graphite,victorisildur/Graphite,8l/Graphite,fhijaz/Graphite,mit-carbon/Graphite,victorisildur/Graphite,nkawahara/Graphite,mit-carbon/Graphite,fhijaz/Graphite,nkawahara/Graphite,nkawahara/Graphite,mit-carbon/Graphite,fhijaz/Graphite,nkawahara/Graphite,victorisildur/Graphite,fhijaz/Graphite,8l/Graphite,mit-carbon/Graphite