Fixed init bug in reg15.
Adding a better mem dumper and cleaned up the test code for w mem.