added rankall and rankhospital. Improved best.R