improved README example with comments and error handling