added threadpool and tested with dummy job function. Ready for multithreading