Update usage example

The usage example needed a few name 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.