Removing unnecessary files; making api url a variable