corrected some of the errors, moved (or added) clock pulses