Read the list and populates a dictionary