Added read me and changed API.