added code generation script