changed copyright to Koen Hoeymans
added Element::hasAttribute
 update phpdoc
update phpdoc
refactoring