Added some comments and refactored the name of the

name of the lookup table in Factor from "probabilities" to "map".