Updated so correct incrmeentation of cycles
modified spectra.c and pywind sub tests