Fixes in branch trace generation. Also added trace gen in jump.

A debug option has been added. It is enabled currently.
When debug is enabled memory is filled with data during simulation.
For e.g.
Mem Loc 0 = 0
Mem Loc 1 = 1
and so on !