highlight for partial DOM selections
cleanup comments
refactor and add comments