updated README and better logging from the api script