Perplexity file adapted. Formula for perplexity can now be programmed