adds documentation for aggregate and block from of by