Added the threshold command line option

Fix issue #1