specifying return type in get_credentials
clarified comment