updated readme with API documentation