added option for choosing number of threads for downloading and processing