Add a few comments
Fix: actually write inner struct offsets
Keep only integers in inner struct offsets