add example and make fixes