Minor code style cleanup
Reorganized scoreElement

Moved some tiny functions back into scoreElement, deprecated
forEachNode, fixed a traversal bug with deriveAnchorFeatures, cleaned up
some comments