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.