Add function to read reference file into hash