malloc moved inside init_Course, documentation added