fixed hospital name sorting problem; read data only once; removed legend code from detail function
automatically choose highest clasi ratio as default for hospital detail