Finished debugging

still need waveforms and answer to cycle question