adding API documentation to README