Commented and added explanations for bpred.c