commandline option for setting num threads
changed parameter name