Refact resource
Add example
update readme