add lib and demo

add lib and demo