1 - Can you please tell me how can I measure mode profile at the input using monitors? 

2 - It seems like it is working, and it is giving correct results if we consider the envelope of the whole thing. I couldn't find any example for nonlinearity as well.