Added embedText

Change-Id: I408bb20ba225f42bd142848a280dcd31a1a0c01d
Added pointer check. Minor changes.

Change-Id: I2127d927372c85d51254191ebc383849dfe5ac09