Fix bug with smooth curves

Certain smooth curves were generating sharp/jagged lines where they intersected with the following line. I went through and reworked portions of the algorithm to fix it. Unfortunately I can't give an example because the content I was working with is copyrighted.