add doc and exception description for the deploying in embed mode.

for the thinking of [#119]