pointers-changed: Adding the pointers changed function

Also added a cursor layer above all others.
Pointers Changed: Responding to Code Review

Added documentation for window.insert-cursor
Make the pointers-changed function more functional.