change: model format; add: template class for PrimaryGeneratorAction; add: random algorithm in PrimaryGeneratorAction;
change: code format;