setNetworkParams function

Check user input related to network structure