Compelet write function

Add install/remove debug info.

Signed-off-by: Keven Liu <airk908@gmail.com>