'Makes the api docs.'

def _api_docs(self, md=False):

    docs = {}
    for (f, _) in inspect.getmembers(self, predicate=inspect.ismethod):
        if ((not f.startswith('_')) and (not f.startswith('_api'))):
            if (md is True):
                docs[f] = (inspect.getdoc(getattr(self, f)) if inspect.getdoc(getattr(self, f)) else None)
            else:
                docs[f] = ('    '.join(inspect.getdoc(getattr(self, f)).split()) if inspect.getdoc(getattr(self, f)) else None)
    return docs
