started script to generate automatic macros for the code