Fixed getNumThreads() for C=
Rewrote doc for set-get number of threads functionality with support new frameworks (bug #2064)
Merge pull request #401 from Daniil-Osokin:bugfix_doc_setNumThreads