clean data and slightly improve grades counting script.
supress duplicates in each prac file.