renamed internal C++ function rank() to fix error with clang++; changes in help files