Added comments to the chat API