added config script. moved api variables into config.