initialize  cls, att, style from element constructor
Merge pull request #142 from skariel/element_creation

initialize  cls, att, style from element constructor