updated docs and example