kavg added to cic_power.f90