added public update() method

Method is needed to redraw the pie graph after calling setValue() on a PieModel object