Merge pull request #2 from rohitsm/master

Stable version
Merge pull request #4 from rohitsm/thread_v2

Merge pull request #2 from rohitsm/master