Wrote the code for the connection singleton and the disconnect code, along with the service available and service connected methods.