replaygain: fixed small errors introduced by previous refactor. Commented the code in key parts.