Update generateCourse.lua

correction and source link for smoothSpline