Updated docs, added an example for adding a thread.
removed unused variables (Thx ZeroBrane Studio code analysis!)
Merge pull request #4 from Tieske/master

Doc update