Add function about generating PMAC from trajectory, and the aggregate function.