added aggregate summary, finalized legend