Enhancement and Bug Fixes

- Fixed check of element's that are no longer attached to DOM
- Fixed Issue #3 - Elements are not sticky correctly when inside a positioned element that is deep inside the viewport element.
Additional test file and changes to example 2 file in support of Issue #3