address remapping implemented correctly

- unmapping previously mapped memory does not work yet
  (due to missing simulator support?)
- dropped lots of old code