Adding improved threadpool and docs for sample project