Added new authorize example.
Fixed minor bug.
Added some documentation.
Allow host_info to load from json