Augment debug information with all reads and writes that are occurring.
Merge pull request #6 from Nebuleon/master

Changes in read_reg and write_reg