clean up warning and fix README example