EOF now prints list end and replaced one loop with better fread usage. TODO: Sorting