update sample code
bug fix
update podspec