Added testing waveform. Made changes to reg/wire declarations
for proper compilation in modelsim.