Added API documentation to the README