added readme/api and made some slight modifications to the api