Merge pull request #141 from joaoventura/master

Improve readability by changing some conditions to one-liners.
initialize  cls, att, style from element constructor
Merge pull request #142 from skariel/element_creation

initialize  cls, att, style from element constructor