refactored detection to return hsh with best char_freq