GetCourse(cid) works now, Cleaned up some stuff and added comments