fixed isTopOfSnake function,

cleaned up scope of nodeSelector to include all functions
(remove 'helper' only functions)
updated example to represent OSG files