Added final check for invalid data: checking whether all grades have been entered. Also added check for invalid input file name.