Updated pie chart code. Fixed warnings.