added update thread
Merge pull request #46 from adispen/master

added update thread