finish interface example and add doc file