Updated documentation and sample