Refactored nodes type to be unexported.
Fixed documentation of unexported functions.