fixed bugs in getallgrades.sh, added mean.sh