Added function to parse dictionary file