fixed empty score bug and added total grades