Fixing some minor bugs caused by typos and add config getter for api_token