Added modes to generate command files program