refactored Connection to take a Network in the ctor
standardized variable names