Improve comments and jsDoc.