write a complete example for usage

The current example hides how to handle non-matching vhosts. A fuller example will make it easier for new users to grasp the API usage.