added d3 pie, refactored variables