Program is finished. Sorting the names has been implemented. I removed comments and cleaned up the code a bit as well.