Advice on naming and comments:

- Don't repeat the name of the variable in the comment.  That adds zero value and can get out of sync over time (yes, I know someone did this in the lines above).

- Spell things out when it makes it clearer: piGainMult -> piGainMultiplier