added some more documentation, added NODE_COUNT processing