Some more work on comments.
Improve handling of change events in Palette.