Updated example documentation and code