Cleaned up imports, and fixed the getCoursesByTerm loop to display all queried courses