Changed Element::ELEMENT_TYPE to Element::TYPE and Element::PRIORITY to Element::POSITION. Added tests for retrieving the children in the proper order
Changed the add() method signature, updated the documentation.