smooth curve using bezierpath
Expose smooth option through delegate, fix diffs
added check for y-value difference if exceeds threshold
changed compare condition to using slope instead of vertical diff