allow setting of number of worker threads
Merge pull request #70 from suan/dynamic_worker_count

allow setting of number of worker threads