Fixed issues with sunny. edges from the sink are now ignored. bug in generate_bn fixed. test updated to use global network