fix EMGRank.R, and add some lines in the roxygen code for some functions