added gain/normalize to compare.py