Basic multithreading for n number of threads done.
Merge pull request #1 from gwhere/master

Improved threading