cleaning histogram fix example, added comments