Competing version to original draft

grouped some attributes,rplaces runtime attribute with scope attribute
introduced patterns for certain attributes
Merge pull request #1 from wilke/master

Competing version to original draft