add better make file and update to use global APIKey