Updated BayesNet code

coded support for adding nodes and edges by name to the BayesNet, as requested by @mb3152 in #706