Struct offset calculator, injgen modifying

- Added CreateOffsetMapper function.
- Restructuring injgen.py