adding in API connection to Yhat server
docstrings