minor code style and api-doc typos