reordering of code and formatting changes only, renamed some var names to uppercase, removed CHILD_NODES definition, removed unique() and sortByContextOrder() not currenlty used (jdalton)
reordering of code and formatting changes only, renamed some var names to uppercase, removed CHILD_NODES definition, removed unique() and sortByContextOrder() not currenlty used (jdalton)

dperini/nwmatcher,dperini/nwmatcher,dperini/nwmatcher