refactoring: added PhysAddr and Offset unions
fixed some errors