fixed comments in reference implementation