Add API documentations and fix indents
Delete trailing tab