Daniel

Results 3 issues of Daniel

The output variable sometimes exceeds the maximum index number of jsonOutput.

added a new parameter ```-t``` to specify the number of threads to run