output frequency of symbols in file
output improoved