cleaned up docs and example