Fixed dom errors in list tools
Added selectionGetFirstRange to selection tools
Use selectionGetRange instead of manually getting first range