Updated api and improved readme