replaced explicit threads with futures
Merge pull request #4 from klaeufer/master

replaced explicit threads with futures