change headings and format
Modified logic from activity merge merge, since it does not keep sequence of records. Done manually.