cleaned up, some basic bayes net strucutre added