Added text service for final grades and added failsafing to json