New visuals

fixed several issues.

assert doc is an Entity. 

Also "The document property is an optional entity" seems a bit weird. More like "The document is an optional property that can be set to an entity  ..."