Added code that compares contributions of different terms to the phase retrieval