added a nice progress bar to the multithreadded part