Add basic macro framework

Loop registration, save result, xls...