restore doc and add example