minor bug fixes to addRankToExcel.rb