Rewrote the API documentation