adds custom attributes

Close #257
adds a handler for class attributes
adds a handler for model and value attributes

Close #257