added documentation and changed some selectors