created class for gathering and handling network information from an interface. This seems messy -- I'll come back to it later.