Changed directory dist's name to prob
Changed code for alterations in last commit
Fix bug in instVar method
Added another example with the same network
Made more changes in calling factor to what was called dist
Made tests for the instVar method