Rules checked during histogram loading

During histogram input, the following rules are checked. Violated rules generate error messages.