Fixed qsort and revised readability of printouts