fixed cubic interpolation
updated examples to be easier to use