ENH Made label/distance pruning optional.
FIX Bug in pruning.
Merged some changes.