Cleanup API comments and convert to JSDoc.