partial rewrite of subsection related to BN learning and inference, fixes #21
references regarding learning and inference of BN added, fixes #2