Merging thresholding functions into one; Minor doc improvements