Use AutoMinorLocator
Remove 'logfolder' program argument
Open a new Frame for each Madx instance