[INTERAL][FIX] added missing comments, some minor refactorings, quicksort fix for parallel task