Cleans API doc format