corrected some calculations, added pie chart