Added functionality to pick maxThreads from property files.
If value given is inappropriate or empty, then it'll be defaulted to 4
threads.