macro development

New macro development for data generation