initial commit of lib

initial commit of lib