polynomial fit curve as apposed to spline

This is more of a proof of concept for polynomial curves. It would be good to have the option to do either.