Updated API and readme.md