JSDoc additions and cleanup.