update API doc

Signed-off-by: Victor Vieux <vieux@docker.com>
add exec support

Signed-off-by: Victor Vieux <vieux@docker.com>
refactor code

Signed-off-by: Victor Vieux <vieux@docker.com>
update API doc

Signed-off-by: Victor Vieux <vieux@docker.com>