Added an sampling over the entire curve. Also made corrections to sampling of knots and valid knot ranges.