moved network config to main program

Doesn't belong in the network class
also created a DHCP based network class.