created logic for logic_comperator

also added "reset" to logic_counter logic