Added `label_fn` parameter to functions which list documents. Added `def_label_fn`.