more tinkering with lookup; changed readDict to readFile and writeDict to writeFile
bwahh