added latch and and schematics and qhdl