Modified config class

Previously the config class required the network to be an argument,
but now there is a method to set the network.