[feature] docs update
[feature] docs for endpoint
[feature] fix endpoint.h