add example and fix some bug