added multithreaded calculation of recall
small other improvements and bug fixes