Implement grade average and credits count
Remove unused ids and rename duplicates