Feature attributes namespace

core code surrounding attributes. Completes #339 #340 #341