fixed the flash message for now
cannot close course while a student is not paid for that course
fixed some bugs
added student_course_detail_histories stuff
removed break statements
added a completed state
added completed state to course processing