Added flip-flops and memory section, fixed T flip-flop bug for clock update