#46: Better API failover
#46: fixed indentation and added some documentation
Merge pull request #74 from rob-erwt/better_api_fails

#46: Better API failover