Updates and new option (-t, -threshold)
Corrected path to env. Now also works on OS X.