work in progress on AttributeSet; it's a long way home but at the end it will be a pleasure to use it! Need to finish encoding and do the decoding