Started work on gate extraction, and looking for latches

Change-Id: I1d37006c70e760d53921a6a5e4538a0455b7e693