fix rules generation
add gitignore
regroup interp and permuts