make pinning thread to cpu a choice
update documentation