+ Added workaround for situations when selecting a small, empty DOM element selects the parent structure
+ Added some interal error checking
+ Added some (disabled) debug output