Changed the readme, added a document about the restful api and a sample program of how to user it