Broadening design

* Added support for more constants, replacing magic numbers
* Added generic feature for building well-formed attributes