fix logging typo and make commas consistent