Improved documentation for defentity.