Well done Hamza! Looking forward to see how much you can go with the inverse problem, which is quite challenging. BTW, you've developed some interesting functions (e.g., intensity, peak and etc) that are suitable for Wolfram Function Repository. What about do you think about submitting them to WFR, then other users can use it?