added shared npeaks to CXI file and added attribute numEvents to all stacks