changelog.sh: Document main loop