Moved adding elements to directive
changing format of json to allow for multiple semesters