update docs and example