udc toggle bit fix, initial nand code