go through the region and bayes codes and add comments
more examples and more comments explaining them