added inheritance of attributes to compiled objects; more work on position inheritance