Added better example code and improved link to documentation.