Added API documentation to README