minor tweaks, e.g. changed `duration` to `exposure` and edited header comments for output.