Fixed the repeated sorted value output, fixed the formatting, also
added get pid to the FIN message so it displays the pid as well.