Fix threshold on discarding, and explain algorithm in Readme.