Added export to excel functionality and charting