added lwd parameter for drawing ellipses in smoothPlot