Text this: Light beam phase retrieval in nonlinear media: a computer simulation