refCodeDict from text file, not hardcoded