Update usage example

The usage example needed a few changes to run. Also, I extended it to show any warnings (which aren't errors). Finally, I clarified that you can use a string or IO object.
Merge pull request #1 from ebargtuo/patch-1

Update usage example