Add comments to some ports, based on original code.
Remove remaining code of counter example.