fix cosmetic errors in API document