Fixed bugs, made enhancements around percentiles, and added multithreading.