changed interface, added REST API and refreshed README