Corrected assignment bug in the comparator and updated the testbench to output a waveform file (VCD)