Refactoring; Api to dump courses
refactoring
api to load courses from local file "courses.json"