move of types, reorganization incorporating new structure. also deprecating parent, header and common
simplified init and reflects new structure

note a lot is commented out, will be reloaded once changes complete
updatading demos to use new structured types