Clean-up from last commit.
Added parameter to set relative intensity threshold for pruning.