reformatted code
added docs for balancing/failover