Updated documentation and example