added rest api
updated README.md