renamed curvecorners to smoothed and added major functionality