Added documentation to Connection, and repaired the API token request
algorithm.