multiple worker threads

Added a threadcount option so you can submit the number of consumer
threads used for calcuation. This it is not mandatory though.