Commented some api code