Some code clean up before I rest this for the day

Code formatting. Tested on two iOS devices and things worked well, did not check disconnection yet however.

Signed-off-by: Eric E. Dolecki <edolecki@gmail.com>