rewrote API documentation