Added some debug messages into backend, cleaned up the course data returned so as to not get nulls.