Added a comment for the potentially confusing dictionary creation code.