updated docs; fixed a self-compare bug in pairwise