improve threshold methods
fix help patch
Merge pull request #1 from avilleret/master

threshold method improvement