Added comments
Renamed addCharacterAsMostCommon method to set instead of add and renamed an argument