fix parameter of getrank function
some documentation
complete documentation and check pass