- move core and text into srgen.data module, avoid use of global
- extract attributeTable
- tweak layout