helper functions and functions for study purposes are moved to rank-private.c
trivial text changes
move private functions into rank-private.c