updating docs and example code