Adding Docstrings and API Retrival Function