Refactored code
Added documentation in README
Fefactored loop
Fixed logic error for number of cpus
Merge pull request #2 from ksmithut/develop

Develop