from slackclient import SlackClient
import json

api_client = None


def init(token):
    global api_client
    api_client = SlackClient(token)
    return api_client


def get_users():
    return json.loads(api_client.api_call('users.list'))['members']


def get_presence(id):
    return json.loads(api_client.api_call('users.getPresence', user=id))

@@ -46,27 +46,160 @@
 on%0A%0A
-api_client = None%0A%0A
+# instance of API client that can be accessed from other files%0Aapi_client = None%0A%0A%0A# create an instance of the api client and initialize it with a token
 %0Adef
@@ -294,16 +294,99 @@
 lient%0A%0A%0A
+# example functions%0A%0A# get_users() returns a list of users in a Slack organization%0A
 def get_
@@ -463,16 +463,81 @@
 bers'%5D%0A%0A
+# get_presence returns if a certain user is active or not in chat
 %0Adef get

Add comments to client.py