Completed rankall.R. Cleaned up and improved comments on *.R