Update design doc and add documentation for aggregation