Added docs for threading functions