Added reading result function.

Also some refactoring is provided.
Yahoo auth url is now taken from the config instead of the options.