removed @dictionary instance variable and reader from dataset. Instead build a dictionary from dataset at the end and pass dictionary as an argument where it is needed in other methods.