Update setup script to be used with the api, take the command line option --api